if(CROSS_COMPILE STREQUAL arm64)

set(CMAKE_SYSTEM_NAME Linux)
set(TOOLCHAIN_DIR "/home/tj/code/O13399_git/alps/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu")
set(TOOLCHAIN_PREFIX aarch64-linux-gnu)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_DIR}/bin/${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_C_COMPILER   ${TOOLCHAIN_DIR}/bin/${TOOLCHAIN_PREFIX}-gcc)
set(GNU_FLAGS "-mfpu=vfp -fPIC")
set(CMAKE_CXX_FLAGS "${GNU_FLAGS} ")
set(CMAKE_C_FLAGS "${GNU_FLAGS}  ")


set(CMAKE_FIND_ROOT_PATH  ${TOOLCHAIN_DIR}
 	${TOOLCHAIN_DIR}/TOOLCHAIN_PREFIX/include
 	${TOOLCHAIN_DIR}/TOOLCHAIN_PREFIX/lib )
endif(CROSS_COMPILE)